package com.zxb.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zxb.system.mapper.BeehivedataMapper;
import com.zxb.system.domain.Beehivedata;
import com.zxb.system.service.IBeehivedataService;

/**
 * 蜂箱数据Service业务层处理
 * 
 * @author zxb
 * @date 2024-10-14
 */
@Service
public class BeehivedataServiceImpl implements IBeehivedataService 
{
    @Autowired
    private BeehivedataMapper beehivedataMapper;

    /**
     * 查询蜂箱数据
     * 
     * @param dataId 蜂箱数据主键
     * @return 蜂箱数据
     */
    @Override
    public Beehivedata selectBeehivedataByDataId(Long dataId)
    {
        return beehivedataMapper.selectBeehivedataByDataId(dataId);
    }

    /**
     * 查询蜂箱数据列表
     * 
     * @param beehivedata 蜂箱数据
     * @return 蜂箱数据
     */
    @Override
    public List<Beehivedata> selectBeehivedataList(Beehivedata beehivedata)
    {
        return beehivedataMapper.selectBeehivedataList(beehivedata);
    }

    /**
     * 新增蜂箱数据
     * 
     * @param beehivedata 蜂箱数据
     * @return 结果
     */
    @Override
    public int insertBeehivedata(Beehivedata beehivedata)
    {
        return beehivedataMapper.insertBeehivedata(beehivedata);
    }

    /**
     * 修改蜂箱数据
     * 
     * @param beehivedata 蜂箱数据
     * @return 结果
     */
    @Override
    public int updateBeehivedata(Beehivedata beehivedata)
    {
        return beehivedataMapper.updateBeehivedata(beehivedata);
    }

    /**
     * 批量删除蜂箱数据
     * 
     * @param dataIds 需要删除的蜂箱数据主键
     * @return 结果
     */
    @Override
    public int deleteBeehivedataByDataIds(Long[] dataIds)
    {
        return beehivedataMapper.deleteBeehivedataByDataIds(dataIds);
    }

    /**
     * 删除蜂箱数据信息
     * 
     * @param dataId 蜂箱数据主键
     * @return 结果
     */
    @Override
    public int deleteBeehivedataByDataId(Long dataId)
    {
        return beehivedataMapper.deleteBeehivedataByDataId(dataId);
    }
}
